package ace.module.account.core.impl.dao.entity;

import jakarta.annotation.Nullable;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.experimental.SuperBuilder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.annotation.Version;
import org.springframework.data.relational.core.mapping.Table;
import jakarta.validation.constraints.Size;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotEmpty;
import java.io.Serializable;
import ace.cmp.spring.data.jdbc.querydsl.core.annotations.LogicDelete;
import ace.cmp.spring.graphql.core.model.GenericPageContent;
import ace.module.account.api.model.dto.IamAccountPassportDto;

/**
* 账户通过证.
*
* @author Caspar
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = IamAccountPassportDto.TABLE_DESC)
@Table(IamAccountPassportDto.TABLE_NAME)
public class IamAccountPassport implements Serializable, GenericPageContent<Long> {

  @Id
  @Schema(title = IamAccountPassportDto.ID_TITLE, description = IamAccountPassportDto.ID_DESC)
  private Long id;

  @Schema(title = IamAccountPassportDto.IAM_APP_ID_TITLE, description = IamAccountPassportDto.IAM_APP_ID_DESC)
  private Long iamAppId;

  @Schema(title = IamAccountPassportDto.IAM_ACCOUNT_ID_TITLE, description = IamAccountPassportDto.IAM_ACCOUNT_ID_DESC)
  private Long iamAccountId;

  /**
   * {@link ace.module.account.api.enums.IamAccountPassportPassportTypeEnum}
   */
  @Schema(title = IamAccountPassportDto.PASSPORT_TYPE_TITLE, description = IamAccountPassportDto.PASSPORT_TYPE_DESC)
  private Integer passportType;

  @Size(max = 255)
  @Schema(title = IamAccountPassportDto.PASSPORT_TITLE, description = IamAccountPassportDto.PASSPORT_DESC)
  private String passport;

  @Size(max = 255)
  @Schema(title = IamAccountPassportDto.PASSPORT2_TITLE, description = IamAccountPassportDto.PASSPORT2_DESC)
  private String passport2;

  @Size(max = 255)
  @Schema(title = IamAccountPassportDto.PASSPORT3_TITLE, description = IamAccountPassportDto.PASSPORT3_DESC)
  private String passport3;

  @LogicDelete
  @Schema(title = IamAccountPassportDto.DELETE_FLAG_TITLE, description = IamAccountPassportDto.DELETE_FLAG_DESC)
  private Long deleteFlag;

  @CreatedDate
  @Schema(title = IamAccountPassportDto.CREATE_TIME_TITLE, description = IamAccountPassportDto.CREATE_TIME_DESC)
  private Long createTime;

  @LastModifiedDate
  @Schema(title = IamAccountPassportDto.UPDATE_TIME_TITLE, description = IamAccountPassportDto.UPDATE_TIME_DESC)
  private Long updateTime;

  @Version
  @Schema(title = IamAccountPassportDto.ROW_VERSION_TITLE, description = IamAccountPassportDto.ROW_VERSION_DESC)
  private Long rowVersion;

}
